package chpt04;
public class ObjectTest {
	public static void main(String[] args) {
		ObjectTest t1 = new ObjectTest();
		ObjectTest t2 = new ObjectTest();
		int code = t1.hashCode();
		Class classType = t1.getClass();
		String type = classType.getName();
		String desc = t1.toString();
		System.out.println("code : " + code);
		System.out.println("type : "+ type);
		System.out.println(desc);
		System.out.println(t1);
		boolean isEqual = t1.equals(t1);
		System.out.println("t1 == t1? " + isEqual);
		isEqual = t1.equals(t2);
		System.out.println("t1 == t2? " + isEqual);
	}
}
